package com.example.lvsuo.service.cxg.impl;

import com.example.lvsuo.entity.cxg.vo.FlowDataVo;
import com.example.lvsuo.mapper.cxg.FlowDataMapper;
import com.example.lvsuo.service.cxg.FlowDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class FlowDataServiceImpl implements FlowDataService {

    @Autowired
    FlowDataMapper flowDataMapper;


    @Override
    public void addFlowData(Map map) {
        flowDataMapper.addFlowData(map);
    }

    @Override
    public List<FlowDataVo> queryFlowData(FlowDataVo flowDataVo) {
        return flowDataMapper.queryFlowData(flowDataVo);
    }

    @Override
    public List<FlowDataVo> queryFlowDataBynowId(String id) {
        return flowDataMapper.queryFlowDataBynowId(id);
    }
}
